﻿using GeuSoftWare.AI.Entitys;

namespace GeuSoftWare.AI.Interface
{
    /// <summary>
    /// 生产过程计算接口
    /// </summary>
    public interface IProductCalculate
    {
        /// <summary>
        /// 计算成品长度（米） 成品长度=坯长*0.98*坯料理重/成品理重/（1+公差%）+切头
        /// </summary>
        /// <param name="materialLength">原料长度(m)</param>
        /// <param name="materialOneLength">原料米重(kg/m)</param>
        /// <param name="proudctOneWeight">成品理重(kg/m)</param>
        /// <param name="toleranceRate">公差率</param>
        /// <param name="cutLength">切头长度(m)</param>
        /// <param name="furnaceConfigEntity">炉体配置实体</param>
        /// <returns>成品长度(m)</returns>
        double CalculateProductLength(double materialLength, double materialOneLength, double proudctOneWeight, double toleranceRate, double cutLength, FurnaceConfigEntity furnaceConfigEntity);
    }
}